package com.store.entities;


import com.common.entities.AbstractDomainEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Component
@Entity
@Table(name = "business")
public class Business extends AbstractDomainEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Schema(description = "商家主键")
    @Column(name = "id")
    private Integer id;
    @Schema(description = "商家名")
    @Column(name = "name")
    private String name;
    @Schema(description = "商家地址")
    @Column(name = "address")
    private String address;
    @Schema(description = "商家起送价")
    @Column(name = "startprice")
    private BigDecimal startprice;
    @Schema(description = "商家配送价格")
    @Column(name = "deliverprice")
    private BigDecimal deliverprice;
    @Schema(description = "商家相关介绍")
    @Column(name = "explain")
    private String explain;
    @Schema(description = "商家图片")
    @Column(name = "img")
    private String img;
    @Schema(description = "备注")
    @Column(name = "remarks")
    private String remarks;

}
